import Http from "../utils/Http";

export default class CategoryModel extends Http {

  getMenuData(parent_id) {
    return this.request({
      url: '/h5/category/category-by-parent',
      data: {
        parent_id
      }
    })
  }

  // 只用一次分类了
  getMenuProduct(parent_id) {
    return this.request({
      url: '/h5/category/menu-product',
      data: {
        parent_id
      }
    })
  }

}
